import { Modal } from 'antd-mobile'
import styles from './index.scss'
const TipModal = ({modalControl, content, closeModal, title}) => {
  return (
    <Modal 
          className={styles.modalContainer}
          visible={modalControl}
          title={title}
          transparent
          maskClosable={false}
          footer={[
            {
              text: '确定',
              onPress: () => {
                closeModal()
              }
            }
          ]}
        >
          <div>{content}</div>
        </Modal>
  )
}
export default TipModal